<extend name="Template/index"/>
<block name="title">
    项目中心
</block>
<block name="resource">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/project.css">
</block>
<block name="nav-pos">
  <span class="glyphicon glyphicon-home"></span>
    <li>您当前所在位置 ：</li>
    <li><a href="{:U('Index/index')}">首页</a></li>
    <li>项目中心</li>
</block>
<block name="main">

  <div id="project">
    <div class="project">
      <div class="clear"></div>
      <div class="release">
        <ul class="nav nav-pills">
          <li role="presentation" class="presentation"><a href="{:U('project/project_release')}?id={$value.id}">发布项目</a></li>
        </ul>
      </div>
      <div class="clear"></div>
      <div class="form">
        <form class="navbar-form"  align="center" role="search" action="{:U('project/index')}" method="post">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="Search" name="search">
          </div>
          <button type="submit" class="btn btn-default">查询</button>
        </form>
      </div>
      <div class="clear"></div>
      <div class="left hidden-xs">
        <ul class="nav nav-pills nav-stacked">
          <volist name="procate" id="val">
          <li><a href="{:U('project/index')}?Indexes={$val.project_category_name}">{$val.project_category_name}</a></li>
          </volist>

        </ul>
      </div>
      <ul class="nav nav-pills visible-xs">
        <volist name="procate" id="val">
        <li><a href="">{$val.project_category_name}</a></li>
        </volist>

      </ul>
      <div class="right">
        <ul class="list-group">
          <volist name="pro" id="vo">
          <li class="list-group-item"><a href="{:U('project/project_details')}?id={$vo.pro_id}">{$vo.pro_name}</a><span><foreach name="user" item="val"><if condition="$vo['user_id'] eq $val['id']">{$val.user_name}</if></foreach></span><span>{$vo.create_time|date="Y-m-d H:i:s",###}</span><b class="visible-xs"><span>${$vo.pro_budget}</span></b><a href="{:U('project/project_details')}?id={$vo.pro_id}" class="btn btn-primary btn-lg visible-xs" role="button">查看</a></li>
          </volist>

        </ul>
      </div>
      <div class="clear"></div>
      <div class="page">
       {$page}
      </div>
      <div class="clear"></div>
    </div>
  </div>
</block>